import http from './http'
/**
 * 体检机构的员工
 *
 * @author twt
 * @since 2025-04-14 16:27:02
 */
//admin
//通过ID查询单条数据
export const queryById = (id: number) => {
  return http.get(`/userInstitutionRelation/${id}`)
}
//评价
export const appraise = (data: {
  userId: number
  appointmentId: number
  score: number
  comment: string
}) => {
  return http.post('/userInstitutionRelation', data)
}
//更新数据
export const update = (data: {
  userId: number
  appointmentId: number
  score: number
  comment: string
}) => {
  return http.put('/userInstitutionRelation', data)
}
//删除数据
export const deleteById = (id: number) => {
  return http.delete(`/userInstitutionRelation/${id}`)
}
//提权
